package me.zhengjie.business.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.zhengjie.business.domain.pk.PersonFeeKey;
import me.zhengjie.business.domain.pk.PersonKey;

import javax.persistence.*;

@Entity
@Data
@Table(name="VIEW_PERSON")
@IdClass(PersonKey.class)
public class Person {

    @Id
    @Column(name = "AAC001")
    @ApiModelProperty(value = "个人编码")
    private String aac001;

    @Column(name = "AAC003")
    @ApiModelProperty(value = "姓名")
    private String aac003;

    @Id
    @Column(name = "AAC002")
    @ApiModelProperty(value = "证件号码")
    private String aac002;

    @Column(name = "AAC008")
    @ApiModelProperty(value = "参保类型")
    private String aac008;

    @Column(name = "AKC021")
    @ApiModelProperty(value = "人员类型")
    private String akc021;

    @Column(name = "CARDNO")
    @ApiModelProperty(value = "社会保障卡号")
    private String cardno;

    @Column(name = "AAC031")
    @ApiModelProperty(value = "参保状态")
    private String aac031;

    @Column(name = "AAB034_CODE")
    @ApiModelProperty(value = "参保统筹区代码")
    private String aab034Code;

    @Column(name = "AAC008_CODE")
    @ApiModelProperty(value = "参保类型代码")
    private String aac008Code;

    @Column(name = "AKC021_CODE")
    @ApiModelProperty(value = "人员类型代码")
    private String akc021Code;

    @Column(name = "AAC031_CODE")
    @ApiModelProperty(value = "参保状态代码")
    private String aac031Code;

    @Column(name = "AAB034_NAME")
    @ApiModelProperty(value = "参保统筹区")
    private String aab034Name;
}
